<template>
    <div>
        <h1>{{num}}</h1>
        <button @click="num++">add</button>
    </div>
</template>

<script>
    export default {
        data(){
            return {
                num:1
            }
        }
    }
</script>

<style lang="scss" scoped>

</style>